package com.funny1.app;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author fanxiao  2021/8/11
 * @since 1.0.0
 */
@Slf4j
public class Foo {

	@Autowired
	Koo koo;

	Koo koo1;

	public Foo() {
		log.info("Foo created");
	}

//  	public void setA(Koo koo) {
//    	log.info("setA koo is : {}", koo);
//    	log.info("setA invoked");
//  }

	@Autowired
	public void assembleKoo(Koo koo){
		this.koo1 = koo;
		log.info("assembleKoo invoked");
	}

	public void infokoo(){
		log.info("koo : {}", koo);
		log.info("koo1: {}", koo1);
	}

//	public void setKoo(Koo koo) {
//		this.koo = koo;
//		log.info("setKoo invoked");
//	}
}
